﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmallJob.Model;
using SmallJob.Data.Interfaces;

namespace SmallJob.Services.Interfaces
{
    public interface IProvideService : IRepository<Provide>
    {
        List<Provide> GetByPage(int page, int pagesize, out int total);
        List<Provide> Find(string s);
        List<Provide> GetProvideByUserID(int id);
        List<Provide> GetProvideByCategoryID(int id);
        List<Provide> GetLastestProvide(int count);
        List<Provide> GetMostPopularProvide(int count);
        List<Provide> GetBuyUserID(int id);
        List<Provide> GetByLocation(string location);

        List<Provide> GetByPageFilter(int page, int pagesize, out int total, string filter);
        List<Provide> GetAllProvide();
        List<Provide> Filter(string location, int category, string title,int minprice,int maxprice);

    }
}
